#ifndef __PRICEDATASERVICECLIENT_H__
#define __PRICEDATASERVICECLIENT_H__


#include "facecat/stdafx.h"
#include "Security.h"
#include "facecat/FCClientService.h"
#define FUNCTION_SUBCODES 0
#define FUNCTION_UNSUBCODES 1
#define FUNCTION_NEWDATA 2

class PriceDataServiceClient: public FCClientService{
public:
    int m_socketID;
public:
    PriceDataServiceClient();
    /*
     * 获取套接字
     */
    int getSocketID();
    /*
     * 设置套接字
     */
    void setSocketID(int value);
    /*
     * 注册代码
     *@param requestID 请求ID
     */
    void subCodes(int requestID, String codes);
    /*
     *反注册代码
     *@param requestID 请求ID
     *@param codes 代码
     */
    void unSubCodes(int requestID);
    /*
     * 获取报价数据
     *@param body 包体
     *@param bodyLength 包体长度
     */
    static ArrayList<PriceData> getPriceDatas(char* body, int bodyLength);
    /*
     * 接收消息方法
     *@param message 消息
     */
    virtual void onReceive(FCMessage *message);
};

#endif

